package com.sgcc.nfc.lock.data.remote.api

import com.sgcc.nfc.lock.core.network.ApiResponse
import com.sgcc.nfc.lock.data.remote.dto.PagedDataDto
import com.sgcc.nfc.lock.data.remote.dto.log.OperationLogDto
import retrofit2.http.GET
import retrofit2.http.Query

interface LogApi {

    @GET("/api/v1/log/list")
    suspend fun getLogs(
        @Query("pageNum") pageNum: Int,
        @Query("pageSize") pageSize: Int,
        @Query("operationType") operationType: Int? = null,
        @Query("lockNfcId") lockNfcId: String? = null,
        @Query("startTime") startTime: String? = null,
        @Query("endTime") endTime: String? = null
    ): ApiResponse<PagedDataDto<OperationLogDto>>
}
